package cn.springBoot.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ljx
 * @since 2020-01-16
 */
@RestController
@RequestMapping("/school")
@Api(value="学校controller",tags={"学校操作接口"})
public class SchoolController {
	
	
	 // logback
    private final static Logger logger = LoggerFactory.getLogger(SchoolController.class);
    @ApiOperation(value="index 接口")
    @GetMapping(value ="/index" )
    @ApiImplicitParams( @ApiImplicitParam(name="id",value="学习id"))
    public String index(Integer id ){
        logger.debug("记录debug日志");
        logger.info("访问了index方法");
        logger.error("记录了error错误日志");
        return "hello";
    }
    
    
    
    

}

